<!DOCTYPE html>
<html>
<meta charset="utf-8">
<script>
function bodyOnLoad(){
	var msg = location.href.split("msg=")[1];
    msg = decodeURI(msg);
    document.getElementById("msgbox").innerHTML=msg;
    var isWaiting = location.href.indexOf('wait=1')>-1;
    if(isWaiting){
      var timer = window.setInterval(function(){
        var showing = wps.PluginStorage.getItem('showLoading');
        if(!showing){
          window.clearInterval(timer);
          // window.opener=null
          // window.open('','_self','')
          window.close();
        }
      },300);
    }else{
      window.setTimeout(function(){
        window.close();
      },3000);
    }    
    // window.setTimeout(()=>{
    //     window.close();
    // },2000)
}
</script>
<body onload="bodyOnLoad()">
<div id="msgbox" style="width:100%;text-align:center;margin:50px 0" >正在保存文件，请稍候...</div>
</body>
</html>